//
//  UIButton+EXtension.swift
//  Weibo
//
//  Created by 黄健桦 on 2016/9/24.
//  Copyright © 2016年 黄健桦. All rights reserved.
//

import UIKit

extension UIButton {
    convenience init(title: String,textColor: UIColor,fontSize: CGFloat) {
        self.init()
        setTitle(title, for: .normal)
        setTitleColor(textColor, for: .normal)
        titleLabel?.font = UIFont.systemFont(ofSize: fontSize)
        self.sizeToFit()
    }
}
